import api from './api.js';
// /social/socialMatch   点击匹配接口
export const socialMatch = params => api({ url: 'social/socialMatch', method: "POST", data: params });
// social/socialDetail 关爱帮扶的儿童和志愿者列表
export const socialDetail = params => api({ url: 'social/socialDetail', method: "GET", data: params });
// social/socialHome 关爱帮扶的儿童和志愿者列表
export const socialHome = params => api({ url: 'social/socialHome', method: "GET", data: params });
// Social/getSocialType 获取学历、关系、类型等数据
export const getSocialType = params => api({ url: 'Social/getSocialType', method: "GET", data: params });
//获取配置
export const appConfig = params => api({ url: 'index/appConfig', method: "GET", data: params });
//获取当前服务器时间
export const serverTimeStamp = params => api({ url: 'index/timeStamp', method: "GET", data: params });
//短信验证
export const smsSend = params => api({ url: 'sms/send', method: "POST", data: params });
//验证码登录
export const mobileLogin = params => api({ url: 'login/mobileLogin', method: "POST", data: params });
//政务登录
export const zwlogin = params => api({ url: 'login/zwLogin', method: "POST", data: params });
//测试站登录
export const testLogin = params => api({ url: 'login/testLogin', method: "POST", data: params });
//登出
export const loginOut = params => api({ url: 'login/out', method: "POST", data: params });
//测试站登录
export const counselorLogin = params => api({ url: 'login/counselorLogin', method: "POST", data: params });
//微信小程序登录
export const wxMpRegister = params => api({ url: 'login/wxMpRegister', method: "POST", data: params });

//绑定uid
export const bindUid = params => api({ url: 'Gate/bind', method: "POST", data: params });
//获取轮播图片
export const getBanners = params => api({ url: 'index/getBanners', method: "get", data: params });
//获取地区
export const cnareaRoom = params => api({ url: 'index/cnareaRoom', method: "get", data: params });
//获取工作室
export const getRooms = params => api({ url: 'room/getRooms', method: "get", data: params });
//获取工作室详情
export const getRoomDetail = params => api({ url: 'room/getRoomDetail', method: "get", data: params });

//咨询师列表
export const getConsultors = params => api({ url: 'Consultor/list', method: "get", data: params });
//咨询师详情
export const getConsultorDetail = params => api({ url: 'Consultor/detail', method: "get", data: params });
//咨询师类别标签
export const getConsultorTags = params => api({ url: 'Consultor/tags', method: "get", data: params });
//咨询师排班
export const workList = params => api({ url: 'Consultor/workList', method: "get", data: params });
//咨询时间
export const weekList = params => api({ url: 'Consultor/week', method: "get", data: params });


//资源库分类
export const eduCate = params => api({ url: 'Edu/cate', method: "get", data: params });
//资源库列表
export const getEduList = params => api({ url: 'Edu/list', method: "get", data: params });
//资源库详情
export const getEduDetail = params => api({ url: 'Edu/detail', method: "get", data: params });
//阅读增加积分
export const eduRead = params => api({ url: 'Edu/read', method: "get", data: params });

export const activityCate = params => api({ url: 'Activity/cate', method: "get", data: params });
//活动列表
export const getActList = params => api({ url: 'Activity/list', method: "get", data: params });
//活动详情
export const getActDetail = params => api({ url: 'Activity/detail', method: "get", data: params });
//活动报名
export const subEnroll = params => api({ url: 'Activity/enroll', method: "post", data: params });
//活动参与二维码
export const actJoin = params => api({ url: 'Activity/actJoin', method: "get", data: params });
//活动参与
export const actJoinConfirm = params => api({ url: 'Activity/actJoinConfirm', method: "get", data: params });


//开始测试
export const startTest = params => api({ url: 'Testmain/start', method: "get", data: params });
//测试评分
export const makeResult = params => api({ url: 'Testmain/makeResult', method: "post", data: params });
//获取测试结果
export const testResult = params => api({ url: 'Testmain/testAfterResult', method: "get", data: params });

//判断是否已关注
export const followExits = params => api({ url: 'Follow/exists', method: "get", data: params });
//关注一个对象
export const followAdd = params => api({ url: 'Follow/add', method: "post", data: params });
//取消关注一个对象
export const followCancel = params => api({ url: 'Follow/cancel', method: "post", data: params });
//获取用户的关注数据
export const userFollowList = params => api({ url: 'Follow/list', method: "get", data: params });

//订单创建
export const orderCreate = params => api({ url: 'Order/create', method: "post", data: params });
//用户订单列表
export const orderList = params => api({ url: 'Order/list', method: "post", data: params });
//咨询订单详情
export const userOrdersInfo = params => api({ url: 'Order/userOrdersInfo', method: "get", data: params });
//取消订单
export const orderCancel = params => api({ url: 'Order/cancel', method: "get", data: params });

//评价
export const evaluateCreate = params => api({ url: 'Evaluate/create', method: "post", data: params });

//评价列表
export const evaluatesList = params => api({ url: 'Evaluate/list', method: "get", data: params });
//评价详情
export const evaluatesDetail = params => api({ url: 'Evaluate/detail', method: "get", data: params });


//评论
export const commentsCreate = params => api({ url: 'Comments/create', method: "POST", data: params });
//评论列表
export const commentsList = params => api({ url: 'Comments/list', method: "get", data: params });

//点赞
export const likeCreate = params => api({ url: 'Likes/create ', method: "POST", data: params });
//取消点赞
export const likeCancel = params => api({ url: 'Likes/cancel ', method: "POST", data: params });


//帮助中心
export const helpList = params => api({ url: 'help/list', method: "get", data: params });
//帮助详情
export const helpDetail = params => api({ url: 'help/detail', method: "get", data: params });

//搜索
export const search = params => api({ url: 'index/search', method: "get", data: params });
//创建客服会话
export const getKefuSession = params => api({ url: 'Kefu/getKefuSession', method: "get", data: params });

//聊天
export const userSendMsg = params => api({ url: 'Record/userSendMsg', method: "post", data: params });
//获取订单会话窗口
export const userAdSession = params => api({ url: 'Record/userAdSession', method: "get", data: params });
//根据会话id获取会话窗口
export const getUserSessionById = params => api({ url: 'Record/userSession', method: "get", data: params });
//获取聊天室
export const userMsgBySessionId = params => api({ url: 'Record/userMsgBySessionId', method: "get", data: params });
//用户获取会话窗口记录
export const userHistorySession = params => api({ url: 'Record/getHistorySession', method: "get", data: params });

// 咨询师订单
export const myOrders = params => api({ url: 'my/Order/counselorOrders', method: "get", data: params });
//咨询订单详情
export const myOrdersInfo = params => api({ url: 'my/Order/counselorOrderInfo', method: "get", data: params });
// 咨询师评级信息
export const myEvaluateList = params => api({ url: 'my/Order/evaluateList', method: "get", data: params });
// 确认服务
export const confirmServer = params => api({ url: 'my/Order/confirmServer', method: "POST", data: params });
//咨询师获取会话窗口记录
export const myHistorySession = params => api({ url: 'my/Record/getHistorySession', method: "get", data: params });
// 创建会话服务
export const myadSession = params => api({ url: 'my/Record/adsession', method: "get", data: params });
export const getSessionById = params => api({ url: 'my/Record/getSessionById', method: "get", data: params });
// 历史消息
export const myMsgBySession = params => api({ url: 'my/Record/getMsgBySessionId', method: "get", data: params });
// 发送消息
export const mySendMsg = params => api({ url: 'my/Record/sendMsg', method: "POST", data: params });

//获取通知
export const getNotices = params => api({ url: 'Notice/list', method: "get", data: params });
//增加解锁次数
export const adViewPush = params => api({ url: 'article/adViewPush', method: "post", data: params });

//积分商城
export const scoreGoods = params => api({ url: 'Score/goods', method: "get", data: params });
//积分商城
export const recommendGoods = params => api({ url: 'Score/recommendGoods', method: "get", data: params });
//商品详情
export const goodsDetail = params => api({ url: 'Score/goodsDetail', method: "get", data: params });
//商品详情
export const scoreBuy = params => api({ url: 'Score/buy', method: "post", data: params });
//商品详情
export const buyNowPay = params => api({ url: 'Score/buyNowPay', method: "post", data: params });
//积分订单列表
export const scoreOrderList = params => api({ url: 'Score/orderList', method: "get", data: params });

//获取广告配置
export const getAdConfig = params => api({ url: 'common/getAdConfig', method: "get", data: params });
//获取用户信息
export const getUserInfo = params => api({ url: 'user/getUserInfo', method: "get", data: params });


//被帮扶记录
export const beApply = params => api({ url: 'Social/beApplyList', method: "get", data: params });

//提交帮扶内容
export const doHelp = params => api({ url: 'Social/doHelp', method: "POST", data: params });
//家访申请
export const homeApply = params => api({ url: 'Social/homeApply', method: "POST", data: params });
//公益申请
export const pubApply = params => api({ url: 'Social/pubApply', method: "POST", data: params });

//申请记录
export const myApply = params => api({ url: 'Social/myApply', method: "GET", data: params });
//帮扶tab
export const helpTab = params => api({ url: 'Socialhelp/getTab', method: "GET", data: params });
//我的帮助记录
export const myHelp = params => api({ url: 'Socialhelp/myHelp', method: "get", data: params });
//我的帮助记录详情
export const myHelpdetail = params => api({ url: 'Socialhelp/myHelpdetail', method: "get", data: params });
//打卡记录
export const helpLog = params => api({ url: 'Socialhelp/helpLog', method: "get", data: params });
//增加打卡记录
export const helpLogAdd = params => api({ url: 'Socialhelp/helpLogAdd', method: "POST", data: params });
//打卡记录详情
export const helpLogDetail = params => api({ url: 'Socialhelp/helpLogDetail', method: "GET", data: params });
//完成帮扶
export const completeHelp = params => api({ url: 'Socialhelp/completeHelp', method: "GET", data: params });
//完成帮扶
export const cancelHelp = params => api({ url: 'Socialhelp/cancelHelp', method: "GET", data: params });

//家访申请记录
export const homeApplyDetail = params => api({ url: 'Social/homeApplyDetail', method: "POST", data: params });
//公益申请记录
export const pubApplyDetail = params => api({ url: 'Social/pubApplyDetail', method: "POST", data: params });

